/***************************************************************************
 *            loginwindow.h
 *
 *  Fri Jan  5 14:05:43 2007
 *  Copyright  2007  Min Seok Seo
 *  <msseo@oasyss.co.kr>
 ****************************************************************************/

/*
 * This program is free software; you can redistribute it and/or
 * modify it under the terms of the GNU Lesser General Public
 * License as published by the Free Software Foundation; either
 * version 2.1 of the License, or (at your option) any later version.
 * 
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 * Lesser General Public License for more details.
 * 
 * You should have received a copy of the GNU Lesser General Public
 * License along with main.c; if not, write to the Free Software
 * Foundation, Inc., 51 Franklin Street, Fifth Floor Boston, MA 02110-1301,  USA
 */
 
#ifndef LINUXPOS_LOGIN_WINDOW_H
#define LINUXPOS_LOGIN_WINDOW_H

#include <iostream>
#include <libglademm/variablesmap.h>
#include <libglademm/xml.h>
#include <gtkmm.h>
#include <gtkmm/button.h>
#include <gtkmm/window.h>
#include <pqxx/connection>
#include <pqxx/transaction>
#include <pqxx/result>
#include <sales.h>

class LoginWindow : public Gtk::Window 
{

public:
	LoginWindow();
	virtual ~LoginWindow();
	
	// Login 확인
	bool login_check;
	std::string login_user;
	std::string login_sosok;
protected:
	// 시그널 핸들러
	virtual void on_Button_Login_accept_clicked();
	virtual void on_Button_Login_cancel_clicked();	
	
	// DB
	std::string strConn;
	// 글래이드 파일 받아오는 변수
	Glib::RefPtr<Gnome::Glade::Xml> m_refGlade;
	Gnome::Glade::VariablesMap* m_pLoginWindowMap;
	
	Gtk::Image* pImage;
	Gtk::Frame* pLoginFrame;
	Glib::ustring m_Entry_id;
 	Glib::ustring m_Entry_pw;
	
	Gtk::Statusbar* m_Statusbar_login;
};

#endif // LINUXPOS_LOGIN_WINDOW_H
